VERSION 5.00
Begin VB.Form frmScan 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Scan"
   ClientHeight    =   7020
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   7515
   Icon            =   "frmScan.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   7020
   ScaleWidth      =   7515
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Command1 
      Caption         =   "Update Bank Gold"
      Height          =   255
      Left            =   4200
      TabIndex        =   20
      Top             =   600
      Width           =   2055
   End
   Begin VB.TextBox BankGold 
      Height          =   285
      Left            =   4200
      TabIndex        =   18
      Top             =   240
      Width           =   2055
   End
   Begin VB.ListBox lstInventory 
      Height          =   4155
      Left            =   120
      TabIndex        =   3
      Top             =   2280
      Width           =   3015
   End
   Begin VB.ListBox lstBank 
      Height          =   4155
      Left            =   3480
      TabIndex        =   2
      Top             =   2280
      Width           =   3015
   End
   Begin VB.CommandButton scandelete 
      Caption         =   "Delete"
      Height          =   375
      Left            =   1560
      TabIndex        =   1
      Top             =   6600
      Width           =   1455
   End
   Begin VB.CommandButton ScanTake 
      Caption         =   "Take"
      Height          =   375
      Left            =   4680
      TabIndex        =   0
      Top             =   6600
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "Banked Gold"
      Height          =   255
      Left            =   4320
      TabIndex        =   19
      Top             =   0
      Width           =   1095
   End
   Begin VB.Label cptPlayer 
      Caption         =   "Player:"
      Height          =   255
      Left            =   1800
      TabIndex        =   17
      Top             =   0
      Width           =   735
   End
   Begin VB.Label lblPlayer 
      Height          =   255
      Left            =   2640
      TabIndex        =   16
      Top             =   0
      Width           =   1455
   End
   Begin VB.Label cptLevel 
      Caption         =   "Level:"
      Height          =   255
      Left            =   1800
      TabIndex        =   15
      Top             =   360
      Width           =   735
   End
   Begin VB.Label lblLevel 
      Height          =   255
      Left            =   2640
      TabIndex        =   14
      Top             =   360
      Width           =   1455
   End
   Begin VB.Label cptItems 
      Alignment       =   2  'Center
      Caption         =   "Inventory"
      Height          =   255
      Left            =   0
      TabIndex        =   13
      Top             =   2040
      Width           =   2175
   End
   Begin VB.Label cptBank 
      Alignment       =   2  'Center
      Caption         =   "Bank"
      Height          =   255
      Left            =   2280
      TabIndex        =   12
      Top             =   2040
      Width           =   2175
   End
   Begin VB.Label cptClass 
      Caption         =   "Class:"
      Height          =   255
      Left            =   1800
      TabIndex        =   11
      Top             =   720
      Width           =   615
   End
   Begin VB.Label lblClass 
      Height          =   255
      Left            =   2520
      TabIndex        =   10
      Top             =   720
      Width           =   1455
   End
   Begin VB.Label cptMaxHP 
      Caption         =   "MaxHP:"
      Height          =   255
      Left            =   1800
      TabIndex        =   9
      Top             =   1680
      Width           =   735
   End
   Begin VB.Label cptMaxEnergy 
      Caption         =   "MaxEnergy:"
      Height          =   255
      Left            =   3240
      TabIndex        =   8
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label cptMaxMana 
      Caption         =   "MaxMana:"
      Height          =   255
      Left            =   4920
      TabIndex        =   7
      Top             =   1680
      Width           =   855
   End
   Begin VB.Label lblMaxHP 
      Height          =   255
      Left            =   2640
      TabIndex        =   6
      Top             =   1680
      Width           =   495
   End
   Begin VB.Label lblMaxEnergy 
      Height          =   255
      Left            =   4200
      TabIndex        =   5
      Top             =   1680
      Width           =   495
   End
   Begin VB.Label lblMaxMana 
      Height          =   255
      Left            =   4080
      TabIndex        =   4
      Top             =   2040
      Width           =   495
   End
End
Attribute VB_Name = "frmScan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    If BankGold.Text > 0 And BankGold.Text < 1999999999 Then
        SendSocket (Chr$(110) + Chr$(6) + QuadChar(BankGold.Text) + frmScan.lblPlayer.Caption)
    Else
        MsgBox "The value must be greater than 0 and less than 1.9 billion!"
    End If
End Sub

Private Sub Form_Terminate()
    Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Unload Me
End Sub

Private Sub lstBank_Click()
    lstInventory.ListIndex = -1
End Sub

Private Sub lstInventory_Click()
    lstBank.ListIndex = -1
End Sub

Private Sub scandelete_Click()
    If lstInventory.ListIndex > -1 Then
        If Scan.Inv(lstInventory.ListIndex) > 200 Then
            SendSocket (Chr$(110) + Chr$(2) + Chr$(Scan.Inv(lstInventory.ListIndex) - 200) + frmScan.lblPlayer.Caption)
            lstInventory.List(lstInventory.ListIndex) = "Deleted - " + Str(lstInventory.ItemData(lstInventory.ListIndex))
        Else
            SendSocket (Chr$(110) + Chr$(1) + Chr$(Scan.Inv(lstInventory.ListIndex)) + frmScan.lblPlayer.Caption)
            lstInventory.List(lstInventory.ListIndex) = "Deleted - " + Str(lstInventory.ItemData(lstInventory.ListIndex))
        End If
    Else
        If lstBank.ListIndex > -1 Then
            SendSocket (Chr$(110) + Chr$(4) + Chr$(Scan.Bank(lstBank.ListIndex)) + frmScan.lblPlayer.Caption)
            lstBank.List(lstBank.ListIndex) = "Deleted - " + Str(lstBank.ItemData(lstBank.ListIndex))
        End If
    End If
End Sub

Private Sub ScanTake_Click()
    If lstInventory.ListIndex > -1 Then
        If Scan.Inv(lstInventory.ListIndex) > 200 Then
            SendSocket (Chr$(110) + Chr$(3) + Chr$(Scan.Inv(lstInventory.ListIndex) - 200) + frmScan.lblPlayer.Caption)
            lstInventory.List(lstInventory.ListIndex) = "Taken - " + Str(lstInventory.ItemData(lstInventory.ListIndex))
        Else
            SendSocket (Chr$(110) + Chr$(0) + Chr$(Scan.Inv(lstInventory.ListIndex)) + frmScan.lblPlayer.Caption)
            lstInventory.List(lstInventory.ListIndex) = "Taken - " + Str(lstInventory.ItemData(lstInventory.ListIndex))
        End If
    Else
        If lstBank.ListIndex > -1 Then
            SendSocket (Chr$(110) + Chr$(5) + Chr$(Scan.Bank(lstBank.ListIndex)) + frmScan.lblPlayer.Caption)
            lstBank.List(lstBank.ListIndex) = "Taken - " + Str(lstBank.ItemData(lstBank.ListIndex))
        End If
    End If
End Sub

